# 根据传入的整型列表,返回最大值max和最小值min
import test24random_list

def max_min(zxlb):
    amax=zxlb[0]
    amin=zxlb[0]
    for i in zxlb:
        if i>amax:
            amax=i
        if i<amin:
            amin=i
    # for i in zxlb:
    return amax,amin


if __name__ == '__main__':

    srzxlb=[9,1,2,3,4,5,6,7,8]
    srzxlb=test24random_list.sjlb()
    # srzxlb=[]
    print(srzxlb)
    print(max_min(srzxlb))